<div class="pagination">
{% set numPages = (total/limit)|round(0, 'ceil') %}
Strana:
<ul>
{% for i in 1..numPages %}
<li>
    {% if i == page %}
        <strong>{{ i }}</strong>
    {% else %}
        <a href="{{ link|format(i) }}">{{ i }}</a>
    {% endif %}
</li>
{% endfor %}
</ul>
</div>